package com.project.bean;


import java.time.LocalDate;
/**商品实体类*/
public class ProductBean {
    /**编号*/
    private int id;
    /**商品名*/
    private String name;
    /**厂家*/
    private String factory;
    /**单价*/
    private int price;
    /**生产日期*/
    private LocalDate date;

    public ProductBean() {
    }

    public ProductBean(String name, String factory, int price, LocalDate date) {
        this.name = name;
        this.factory = factory;
        this.price = price;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public LocalDate getStartDate() {
        return date;
    }

    public void setStartDate(LocalDate startDate) {
        this.date = startDate;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", factory='" + factory + '\'' +
                ", price=" + price +
                ", startDate=" + date +
                "}\n";
    }
}
